package com.craigcmiller.cmtetris.ui;

import javax.swing.*;
import java.awt.*;


/**
 * Swing client app frontend
 * @author craig
 */
public class GameWindow extends JFrame
{
	public static final long serialVersionUID=0;
	private SwingGraphics sg;
	
	
	public GameWindow()
	{
		this.setTitle("MiniTetris");
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		sg=new SwingGraphics(this, 300, 600, 10, 20, false);
	}
	
	
	@Override
	public void paint(Graphics gfx)
	{
		sg.paint(gfx);
	}
	
	
	public static void main(String[] args)
	{
		GameWindow mainWin=new GameWindow();
		
		mainWin.setVisible(true);
	}
}
